import Vue from 'vue'
import Vuetify from 'vuetify'
import zhHans from 'vuetify/es5/locale/zh-Hans' // 加载Vuetify中文包
import '@mdi/font/css/materialdesignicons.css'
import 'vuetify/dist/vuetify.min.css'
Vue.use(Vuetify)
export default (ctx) => {
  const vuetify = new Vuetify({
    icons: {
      iconfont: 'mdi'
    },
    theme: {
      dark: false // From 2.0 You have to select the theme dark or light here
    },
    lang: {
      locales: { zhHans },
      current: 'zhHans'
    }
  })
  ctx.app.vuetify = vuetify
  ctx.$vuetify = vuetify.framework
}
